from django.conf.urls.defaults import *
import views

urlpatterns = patterns('',
    url(r'^profile/$', views.profile, name="sreg_profile"),
    url(r'^profile/edit/$', views.profile_edit, name="sreg_profile_edit"),

    url(r'^friends/$', views.friend_list, name="sreg_friend_list"),
    url(r'^friends/detail/(\d+)/$', views.friend_detail, name="sreg_friend_detail"),
    url(r'^friends/add/$', views.friend_add, name="sreg_friend_add"),
    url(r'^friends/edit/(?P<profile_id>\d+)/$', views.profile_edit, name="sreg_friend_edit"),
    url(r'^friends/autoadd/$', views.friend_autoadd, name="sreg_friend_autoadd"),
    url(r'^friends/delete/$', views.friend_delete, name="sreg_friend_delete"),
    
    url(r'^feeds/$', views.friend_feeds, name="sreg_friend_feeds"),
    
    url(r'^accounts/login/$', views.login_view, name="sreg_login"),
    url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'simplereg/logout.html',}, name="sreg_logout"),
    url(r'^accounts/register/$', views.register, name="sreg_register"),
)
